﻿-var statuses = ViewData["statuses"] as List<StatusInfo>
-var statusid = ViewData.ContainsKey("statusid") ? (int)ViewData["statusid"] : 0
%h3 Заявки:
%ul.rightfilterlist.statusfilterlist
  -foreach(var s in statuses)
    %li{class=(s.Id == statusid) ? "state selected" : "state"}    
      %a{href="#", onclick=String.Format("return statusIdChange(this, {0})", s.Id)}
        =String.Format("{0} ({1})", s.Name, s.OrdersCount)
        